/* 水平导航 */
.header {
	box-sizing: border-box;
	background: #3a81f7;
	left: 0px;
	right: 0px;
	box-shadow: 5px 0px 10px rgba(0, 0, 0, 0.5);	
}
.header a.logo {
	padding-left: 10px;
	display: inline-block;
	line-height: 70px;
	font-size: 21px;
	color: #F0F0F0;
}
.header a.logo::before, a.logo::after {
	display: inline-block;
	opacity: 0;
	transition: transform 0.3s, opacity 0.2s;
}
.header a.logo::before {
	margin-right: 10px;
	content: '[';
	transform: translateX(20px);
}
.header a.logo::after {
	margin-left: 10px;
	content: ']';
	transform: translateX(-20px);
}
.header a.logo:hover::before, a.logo:hover::after, a.logo:focus::before, a.logo:focus::after {
	opacity: 1;
	-webkit-transform: translateX(0px);
	-moz-transform: translateX(0px);
	transform: translateX(0px);
}

#toggle-top-menu {
	display: none;
}
#toggle-top-menu::before {
	font-family: FontAwesome;
	content: "\f0c9";
}
.header .top-menu {
	padding-top: 6px;
	padding-right: 8px;
}
.header .top-menu > ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.header .top-menu > ul > li {
	display: inline-flex;
	position: relative;
	align-content: center;/*水平居中*/
	align-items: flex-start;/*垂直居中*/
	text-align: center;
	box-sizing: border-box;
	height: 61px;
	letter-spacing: 1px;
	margin-left: 10x;
	margin-right: 10px;
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 5px;
}
.header .top-menu > ul > li > a {
	display: inline-block;
	position: relative;
	color: #F0F0F0;
	margin-left: auto;
	margin-right: auto;
	padding-top: 16px;
	padding-bottom: 10px;
	padding-left: 8px;
	padding-right: 8px;
	font-size: 16px;
	line-height: 18px;
}
.header .top-menu a::after {
	position: absolute;
	bottom: 0px;
	left: 0;
	width: 100%;
	height: 0px;
	background: #f0f0f0;
	content: '';
	opacity: 0;
	transition: height 0.3s, opacity 0.3s, transform 0.3s;
	transform: translateY(-10px);
}
.header .top-menu a.active {
	box-sizing: border-box;
	border-bottom: 3px solid #f0f0f0;
}
.header .top-menu a:hover::after, header .header a:focus::after {
	height: 3px;
	opacity: 1;
	transform: translateY(3px);
}
.header .top-menu i.count {
	font-style: normal;
	display: block;
	position: absolute;
	border-radius: 5px;
	background: #ed5565;
	font-size: 12px;
	right: 0px;
	top: -0px;
	padding-left: 5px;
	padding-right: 5px;
	line-height: 18px;
}

@media (max-width: 768px) {
	.header {
		position: relative;
		z-index: 100;
	}
	#toggle-top-menu {
		display: block;
		line-height: 70px;
		color: #FFFFFF;
		font-size: 21px;
		padding-right: 15px;
		padding-left: 15px;
	}
	.header .top-menu {
		padding-right: 0px;
		display: none;
		flex-wrap: wrap;
		align-content: flex-start;
		width: 100%;
		top: 70px;
		left: 0px;
		bottom: 0px;
		position: fixed;
		background-color: #4E5465;
		padding-top: 15px;
		z-index: 10000;
		overflow: scroll;
	}
	.header .top-menu > ul {
		display: flex;
		box-sizing: border-box;
		padding: 0;
		flex-wrap: wrap;
		width: 100%;
	}
	.header .top-menu > ul > li {
		display: inlie-flex;
		position: relative;
		align-content: center;/*水平居中*/
		align-items: flex-start;/*垂直居中*/
		text-align: center;
		box-sizing: border-box;
		color: rgb(240, 240, 240);
		height: 61px;
		letter-spacing: 1px;
		margin-left: 0px;
		margin-right: 0px;
		padding-left: 0px;
		padding-right: 0px;
		padding-top: 5px;
		margin-bottom: 20px;
		width: 25%;
		z-index: 1001px;
	}
	.header .top-menu a {
		padding-top: 18px;
		padding-bottom: 10px;
		padding-left: 6px;
		padding-right: 6px;
		font-size: 16px;
		line-height: 18px;
	}
	#chk_top_menu:checked + .top-menu {
		display: block;
	}
}

/* 垂直导航   */
.sidebar {
	background: #f2f2f2;
	border-right: 1px solid #e2e2e2;
	overflow-x: hidden;
	padding-top:15px;		
}
.sidebar-scroll {
	width: 1000px;;
	height: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
}
#toggle-sidebar, #chk-sidebar {
	display: none;
}
#toggle-sidebar::before {
	font-size: 36px;
	font-family: FontAwesome;
	content: "\f105";
}
.sidebar ul {
	padding: 0;
	margin: 0;		
}
.sidebar ul li {
	box-sizing: border-box;
	position: relative;
	line-height: 42px;
	display: block;
}
.sidebar ul li a {
	display: block;
	box-sizing: border-box;
	line-height: 41px;
	height: 42px;
	color: #111;
	border-bottom: 1px solid #ccc;
	background: #F2F2F2;
}
.sidebar ul li a:hover {
	background: #E2E2E2;
	color: #000000;
}
.sidebar a.active {
	background: #2794EB;
	color: #FFFFFF;	
}
.sidebar a.active:hover {
	background: #2794EB;
	color: #FFFFFF;
}
.sidebar a:before {
	font-family: FontAwesome;
	font-size: 18px;
	content: "\f105";
	padding-left: 12px;
	padding-right: 15px;
}
.sidebar ul li:first-child a {
	border-top: none;
}
.sidebar i.count {
	font-style: normal;
	border-radius: 5px;
	position: absolute;
	background: #ed5565;
	color: #FFFFFF;
	font-size: 12px;
	right: 30px;
	padding-left: 5px;
	padding-right: 5px;
	line-height: 18px;
	margin-top: -30px;
}
.sidebar label i.fa-angle-down {
	float: right;
	top: 0px;
	font-size: 18px;
	position: relative;
	padding-right: 8px;
	padding-left: 8px;
	margin-top: -40px;
	line-height: 40px;
	transition: all 0.4s ease;
}

.sidebar ul li > a {
	padding-left: 0px;
}
.sidebar ul ul > li a {
	padding-left: 24px;
}
.sidebar ul ul ul > li a {
	padding-left: 48px;
}
.sidebar ul ul {
	display: block;
	height: 0;
	max-height: 0px;
	overflow: hidden;
}
.sidebar input[type="checkbox"] {
	display: none;
}
.sidebar input[type="checkbox"]:checked + label + ul {
	border-top: 0px solid #f3f3f3;
	height: 100%;
	max-height: 1000px;
	transition: max-height 0.4s linear;
}
.sidebar input[type="checkbox"]:checked + label i {
	transform: rotate(-180deg);
}

@media (max-width: 768px) {
	.sidebar {
		position: fixed;
		top: 0px;
		bottom: 0px;
		z-index: 1001;
		left: -300px;
		transition: left 0.4s;
	}
	#toggle-sidebar {
		display: block;
	}
	#toggle-sidebar + input + label {
		display: none;
	}
	#toggle-sidebar + :checked + label {
		display: block;
	}
	#toggle-sidebar + :checked + label + .sidebar {
		transition: left 0.4s;
		left: 0px;
	}
	#toggle-sidebar {
		border-radius: 2px;
		left: 15px;
		bottom: 15px;
		position: fixed;
		z-index: 1000;
		width: 50px;
		height: 50px;
		line-height: 50px;
		background: #3D3D3D;
		opacity: 0.8;
		font-size: 36px;
		color: #FFFFFF;
		text-align: center;
	}
	#shade-sidebar {
		position: fixed;
		z-index: 999;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 0px;
		background: #3d3d3d;
		opacity: 0.8;
	}
}